package org.springcloud.plugin.strategy.service.adapter;

import org.springcloud.plugin.framework.adapter.CoreAdapter;
import org.springcloud.plugin.strategy.service.context.ServiceStrategyContextHolder;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @Author yanggld
 * @Date 2020/2/5-16:45
 * @Description 继承该类，实现自定义拦截器。rest请求中加入自定义属性
 */
public abstract class DefaultRestTemplateStrategyInterceptorAdapter implements RestTemplateStrategyInterceptorAdapter {
	@Autowired
	protected CoreAdapter coreAdapter;

	@Autowired
	protected ServiceStrategyContextHolder serviceStrategyContextHolder;

	public CoreAdapter getCoreAdapter() {
		return coreAdapter;
	}

	public ServiceStrategyContextHolder getServiceStrategyContextHolder() {
		return serviceStrategyContextHolder;
	}
}